package am.bll.entity;

/**
 * 账本参数
 * 
 * @author hachalo
 *
 */

import am.bll.entity.basic.*;

public class BookConfig
{
    private int id = 0;
    private char defaultunit;
    private Money monthbudget;
    private Money daybudget;
    private boolean opendaywarn = true;
    private boolean openmonthwarn = true;

    /**
     * 设置账本id,默认为0
     */ 
    public void setID(int ID)
    {
        id = ID;
    }
    /**
     * 获取账本id
     * @return
     */
    public int getID()
    {
        return id;
    }
    /**
     * 设置默认货币单位
     */
    public void setDefaultUnit(char DefaultUnit)
    {
        defaultunit = DefaultUnit;
    }
    /**
     * 获取默认货币单位
     * @return
     */
    public char getDefaultUnit()
    {
        return defaultunit;
    }
    /**
     * 设置每月预算金额
     */
    public void setMonthBudget(Money MonthBudget)
    {
        monthbudget = MonthBudget;
    }
    /**
     * 获取每月预算金额
     * @return
     */
    public Money getMonthBudget()
    {
        return monthbudget;
    }
    /**
     * 设置每日预算金额
     */
    public void setDayBudget(Money DayBudget)
    {
        daybudget = DayBudget;
    }
    /**
     * 获取每日预算金额
     * @return
     */
    public Money getDayBudget()
    {
        return daybudget;
    }
    /**
     * 设置是否开启每日警告，默认开启
     */
    public void setOpenDayWarn(boolean OpenDaywarn)
    {
        opendaywarn = OpenDaywarn;
    }
    /**
     * 获取是否开启每日警告
     * @return
     */
    public boolean getOpenDayWarn()
    {
        return opendaywarn;
    }
    /**
     * 设置是否开启每月警告，默认开启
     */
    public void setOpenMonthWarn(boolean OpenMonthwarn)
    {
        openmonthwarn = OpenMonthwarn;
    }
    /**
     * 获取是否开启每月警告
     * @return
     */
    public boolean getOpenMonthWarn()
    {
        return openmonthwarn;
    }
}
